package com.dc.ai.entity.query;

import lombok.Data;
import org.springframework.ai.tool.annotation.ToolParam;

import java.util.List;

@Data
public class DeviceQuery {

    @ToolParam(required = false, description = "设备编号")
    private String deviceCode;

    @ToolParam(required = false, description = "用户ID")
    private String userId;

    @ToolParam(required = false, description = "用户名称,用户手机号")
    private String username;

    @ToolParam(required = false, description = "排序方式")
    private List<Sort> sorts;

    @Data
    public static class Sort {
        @ToolParam(required = false, description = "排序字段: createTime")
        private String field;
        @ToolParam(required = false, description = "是否是升序: true/false")
        private Boolean asc;
    }
}